import axios from 'axios';
// 接口封装
interface ParamsProps {
  userName?: string,
  pwd?: string,
  token?: string
}
export const FetchLogin = (params: ParamsProps) => {
  return axios.get('/api/login', { params })
}

export const FetchUserInfo = ({ token }: ParamsProps) => {
  return axios.get('/api/userInfo', {
    headers: {
      token
    }
  })
}
